/*****************考勤设置  api */
import request from "@/utils/request";

/**
 *
 * @param {无}
 * @returns
 */
export function getcheckpoint() {
  return request({
    url: "/api/crm/duty/checkpoint",
    method: "get",
  });
}

/**
 *
 * @param {Obeject} data
 * @returns
 */
export function qryCheckPointByName(data) {
  return request({
    url: "/api/crm/duty/qryCheckPointByName",
    method: "post",
    data,
  });
}

/**
 * @打卡点删除
 * @param {*} data
 * @returns
 */
export function delCheckpointById(data) {
  return request({
    url: "/api/crm/duty/delCheckpointById",
    method: "post",
    data,
  });
}

/**edit api ************************************************************************************************/
/**
 * @打卡点编辑  新增
 */
export function Checkpoint(url, data) {
  return request({
    url: url,
    method: "post",
    data,
  });
}

/**
 * @查询人员列表
 * @returns
 */
export function queryPersonList() {
  return request({
    url: "/api/crm/duty/queryPersonList",
    method: "post",
  });
}

export function qryCheckpointById(data) {
  return request({
    url: "/api/crm/duty/qryCheckpointById",
    method: "post",
    data: data,
  });
}
